// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'

import { registerMicroApps, start } from "qiankun";

registerMicroApps([
  {
    name: "app-child1",
    entry: "//localhost:3000",
    container: "#container",
    activeRule: "/app-child1"
  },
  {
    name: "app-child2",
    entry: "//localhost:3001",
    container: "#container",
    activeRule: "/app-child2"
  },
  {
    name: "app-child3",
    entry: "//localhost:3002",
    container: "#container",
    activeRule: "/app-child3"
  },
])

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  components: { App },
  template: '<App/>'
})

start();